package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentUpkeepPlanTarget;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.system.service.BaseService;

import java.util.List;


/**
 * 点巡检计划目标Service接口
 *
 * @author Cheng
 * @date 2023-07-19
 */
public interface EquipmentUpkeepPlanTargetService extends BaseService<EquipmentUpkeepPlanTarget> {

    /**
     * 新增区域目标
     * @param equipmentUpkeepPlanTarget
     */
    public Result<?> addAreaTarget(EquipmentUpkeepPlanTarget equipmentUpkeepPlanTarget);

    /**
     * 新增设备目标
     * @param targetList
     */
    public Result<?> addEqpTargets(List<EquipmentUpkeepPlanTarget> targetList);

    /**
     * 根据分类id添加目标
     * @param planId
     * @param categoryId
     */
    public Result<?> addTargetByCategoryId(String planId, String categoryId);

    public List<EquipmentUpkeepPlanTarget> selectByMainId(String mainId);

}
